home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ultimate Blitz Basic 2.1
/
Ultimate Blitz Basic 2.1 (1997)(Acid Software).iso
/
blitz2_pddisk_3
/
tt
< prev
next >
Wrap
Text File
|
1997-10-02
|
658b
|
26 lines
inittd:
DEFTYPE .IOStdReq myio
DEFTYPE .MsgPort myport
myport\mp_Node\ln_Type=4
myport\mp_MsgList\lh_Head=&myport\mp_MsgList\lh_Tail
myport\mp_MsgList\lh_TailPred=&myport\mp_MsgList\lh_Head
myio\io_Message\mn_Node\ln_Type=5
myio\io_Message\mn_ReplyPort=&myport
myio\io_Message\mn_Length=SizeOf.IOStdReq
If OpenDevice_("trackdisk.device",0,myio,0)<>0 Then End
signal.l=AllocSignal_(-1):If signal<0 Then End
myport\mp_SigBit=signal
myport\mp_SigTask=FindTask_(0)
Return
seektd:
myio\io_Command=$8000+10 ;then seek to zero
myio\io_Offset=0
DoIO_ myio
Return
finittd:
CloseDevice_ myio
FreeSignal_ signal
Return